//
// 304route.cpp for  in /home/goldbe_y//tek3/Projets/Maths/epimaths/304route
// 
// Made by yoni goldberg
// Login   <goldbe_y@epitech.net>
// 
// Started on  Fri Oct 12 14:52:42 2012 yoni goldberg
// Last update Mon Oct 15 16:56:12 2012 gaelle maurieres
//

#include "Maths.hpp"

int	main(int ac, char **av)
{
  if (ac == 2)
    {
      Maths	test(av[1]);
      std::string	*tmp;

      std::cout << "Fichier : " << av[1] << std::endl;
      std::cout << "Nombre d'arc : " << test.get_line() << std::endl;
      std::cout << "Nombre de sommets : " << test.get_sommets() << std::endl;
      std::cout << "Liste des arcs : " << std::endl;
      test.aff_tab(test.get_tab());
      std::cout << "Plus courts chemins : " << std::endl;
      for(int i = 0; i < test.get_sommets(); i++)
	std::cout << (char)('a' + i) << " ";
      std::cout << std::endl;
      for(int i = 0; i < test.get_sommets(); i++)
	std::cout << test.get_dist()[i] << " ";
      std::cout << std::endl << std::endl;

      for(int i = 1; i < test.get_sommets(); i++)
	std::cout << test.get_path()[i] << " \t"  << test.get_dist()[i] << std::endl;
    }
  else
    std::cout << "Usage : ./304route file" << std::endl;
  return 0;

}
